package com.oauth2.auth.resource.oauth2resourceserver.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @since 2022/10/25 上午10:34
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }

    @GetMapping("/admin/hello")
    public String admin() {
        return "admin";
    }

    @GetMapping("/cas/oauth2.0/profile")
    public String test() {
        return "{\"id\":\"11390397\",\"attributes\":[{\"error\":\"invalid_request. null\"}]}";
    }
}
